<?xml version='1.0' encoding='UTF-8'?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui">
    <p:dialog header="Entrada" widgetVar="dlgEntrada" resizable="false" modal="true" appendToBody="true">
        <h:form id="formRegistroEntrada">
            <p:messages id="messages" showDetail="true" showSummary="false" autoUpdate="true" closable="true" />
            <h:panelGrid columns="6" id="panelRegEntrada">
                    <h:outputLabel for="txtUp" value="Arete:"/>
                    <p:inputText value="#{consultaEntradaActionBean.entradas.arete}" id="txtUp" required="true" requiredMessage="Ingrese Arete" />
  					<h:outputLabel for="fechaEntrada" value="F. Entrada:"/>
		            <p:calendar id="fechaEntrada" inputClass="calendar130" value="#{consultaEntradaActionBean.entradas.fechaEntrada}" />
			<h:outputLabel for="txtColor" value="Color:"/>
		     <p:inputText value="#{consultaEntradaActionBean.entradas.color}" id="txtColor" required="true" requiredMessage="Ingrese Color" />       
            
 			<p:commandButton id="btnGrabarEx" value="Grabar"  actionListener="#{consultaEntradaActionBean.grabar(consultaEntradaActionBean.entradas.id)}" 
 			update="panelRegEntrada,messages,:formConsultaEntrada:tblConsultaEntrada"
 			process="@form" oncomplete="if (!args.validationFailed) dlgEntrada.hide() "/>
            <p:commandButton id="btnSalirEx" value="Cerrar" oncomplete="dlgEntrada.hide();" />
 
            
            </h:panelGrid>

        </h:form>
        <p:ajax event="close" update="formConsultaEntrada:tblConsultaEntrada"/>
              </p:dialog>
</ui:composition>